<?php
function rss_transform($item) {
	return array('title' => $item['Article']['title'],
				'link' => array('controller' => 'articles', 'action' => 'view', $item['Article']['slug']),
				'guid' => array('controller' => 'articles', 'action' => 'view', $item['Article']['slug']),
				'description' => $item['Article']['intro'],
				'pubDate' => $item['Article']['created'],				
				);
}
echo $rss->items($articles, 'rss_transform');
?>